package com.montran.serializableFile;

public class TestSerializable {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		 Queue theQueue, otherQueue;
		  
		  theQueue = new Queue();
		  otherQueue = new Queue();
		  theQueue.put("element 1");
		  theQueue.put("element 2");
		  theQueue.put("element 3");
		  theQueue.put("element 4");
		  System.out.println(theQueue.toString());
		  
		  // serialize the Queue
		  System.out.println("serializing theQueue");
		  
		  Serializable test = new Serializable();
		  
		  String name = new String("data");
		  test.saveData(theQueue,name);
		  otherQueue = test.gerData(name);
		  System.out.println(otherQueue.toString());

	}

}
